package com.yhao.bean.tx;


import com.google.gson.annotations.SerializedName;

import javax.persistence.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Entity
@Table(name = "newperson")
public class NewPerson implements Serializable {


    /**
     * person_id : person0
     * suc_group : 1
     * suc_face : 1
     * errorcode : 0
     * session_id : session_id
     * “face_id” : “1009550071676600319”
     * group_ids : ["tencent"]
     * errormsg : ok
     */
    @Id
    @GeneratedValue
    private Long id;

    @SerializedName("person_id")
    private String personId;
    @SerializedName("suc_group")
    private int sucGroup;
    @SerializedName("suc_face")
    private int sucFace;
    @Transient
    @SerializedName("errorcode")
    private int errorCode;
    @SerializedName("session_id")
    private String sessionId;
    @SerializedName("“face_id”")
    private String faceId;
    @Transient
    @SerializedName("errormsg")
    private String errorMsg;
    @SerializedName("group_ids")
    private ArrayList<String> groupIds;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public int getSucGroup() {
        return sucGroup;
    }

    public void setSucGroup(int sucGroup) {
        this.sucGroup = sucGroup;
    }

    public int getSucFace() {
        return sucFace;
    }

    public void setSucFace(int sucFace) {
        this.sucFace = sucFace;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getFaceId() {
        return faceId;
    }

    public void setFaceId(String faceId) {
        this.faceId = faceId;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public List<String> getGroupIds() {
        return groupIds;
    }

    public void setGroupIds(ArrayList<String> groupIds) {
        this.groupIds = groupIds;
    }
}
